package com.czf.table.mapper;


import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.czf.table.config.DynamicTableNameProvider;
import com.czf.table.entity.User;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.SelectProvider;

/**
 * <p>
 * MP 支持不需要 UserMapper.xml 这个模块演示内置 CRUD 咱们就不要 XML 部分了
 * </p>
 *
 * @author hubin
 * @since 2018-08-11
 */
public interface UserMapper extends BaseMapper<User> {

    @SelectProvider(type = DynamicTableNameProvider.class, method = "selectById")
    User selectId(@Param("id") Long id, @Param("tableName") String tableName);


}
